pipeline {
    agent any
    stages {
        stage('Code Clone') {
            when {
                expression {
                    true
                }
            }
            steps {
                echo "Clone Stage, always run"
            }
        }
        stage('Build') {
            steps {
                echo 'Building'
            }
            post {
                always {
                    echo "Always post at the end of stage Building"
                }
            }
        }
        stage('Code Specification') {
            steps {
                echo 'Code Specification Stage'
            }
        }

        stage('Code Scan') {
            steps {
                echo 'Code Specification Stage'
            }
        }

        stage('Unit Test') {
            steps {
                echo 'Unit Test'
            }
        }

    }
    post {
        always {
            echo "Always post at end of pipeline"
        }
    }
}